package com.apabi.service.impl;


import com.apabi.common.config.DataSource;
import com.apabi.mapper.ReferenceMapper;
import com.apabi.service.ApiMateService;
import com.apabi.service.ReferenceService;
import com.google.common.collect.Lists;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by huhu on 2018/1/17.
 */
@Service
public class ReferenceServiceImpl implements ReferenceService{

    @Autowired
    private ReferenceMapper referenceMapper;


    @Override
    @DataSource(name=DataSource.sqlServerRefdataSource)
    public List<String> selectReference(String docId,Integer page,Integer size) {
        List<String> refDocId = referenceMapper.getRefDocId(docId,page,size);
        return refDocId;
    }
}
